<template>
<h1>布局</h1>
<el-row :gutter="10">
  <el-col :span="6">哈哈哈哈</el-col>
  <el-col :span="6">哈哈哈哈</el-col>
  <el-col :span="6">哈哈哈哈</el-col>
  <el-col :span="6">哈哈哈哈</el-col>
</el-row>
  <h3>两张图</h3>
  <el-row :gutter="10">
    <el-col :span="12"><img src="rich.jpg" style="width: 100%"></el-col>
    <el-col :span="12"><img src="rich.jpg" style="width: 100%"></el-col>
  </el-row>
  <h3>六张图</h3>
  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>
  <h3>列偏移</h3>
  <el-row :gutter="10">
    <el-col :offset="4" :span="20"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>
  <hr>
  <!-- 1.图片2024.png占12列,在页面居中位置 -->
  <el-row>
    <el-col :span="12" :offset="6"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>
  <!-- 2.有三张图片2024.png,他们的宽度比为1:2:3 -->
  <el-row>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="8"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>
  <!-- 3.有8列,均分一行,每列显示的内容为1 2 3...8 -->
  <el-row>
    <el-col :span="3" v-for="i in 8" style="border: 3px solid red">{{i}}</el-col>
  </el-row>
  <br>
  <br>
  <br>
  <!--  布局嵌套-->
  <el-row>
    <el-col :span="12" style="border: 3px solid red">12</el-col>
    <el-col :span="12" style="border: 3px solid green">
      <el-row>
        <el-col :span="8" style="border: 3px solid blue">8</el-col>
        <el-col :span="8" style="border: 3px solid blue">8</el-col>
        <el-col :span="8" style="border: 3px solid blue">8</el-col>
      </el-row>
    </el-col>
  </el-row>
</template>

<script setup>

</script>


<style scoped>

</style>